//
//  YLPickerView.h
//  yuLink
//
//  Created by 孙强 on 2021/2/16.
//

#import <Foundation/Foundation.h>
#import "BRPickerView.h"

NS_ASSUME_NONNULL_BEGIN

@interface YLPickerView : NSObject


/// 日期选择器
/// @param height 选择器高度
/// @param pickerModel 日期展示方式
/// @param clickBlock 返回日期以及日期字符串
+ (void)showPickViewWithHeight:(CGFloat)height selectDate:(NSDate *)selectDate pickerModel:(BRDatePickerMode)pickerModel callback:(void(^)(NSDate *date, NSString *str))clickBlock;

+ (void)showPickViewWithHeight:(CGFloat)height selectDate:(NSDate *)selectDate minDate:(NSDate *)minDate maxDate:(NSDate *)maxdate pickerModel:(BRDatePickerMode)pickerModel callback:(void(^)(NSDate *date, NSString *str))clickBlock;


/// 日期选择器
/// @param height 选择器高度
/// @param pickerModel 日期展示方式
/// /// @param title 标题
/// @param clickBlock 返回日期以及日期字符串
+ (void)showStringPickViewWithHeight:(CGFloat)height selectIdx:(NSInteger)selectIdx dataSourceArr:(NSArray *)dataSourceArr title:(NSString *)title callback:(void(^)(BRResultModel *resultModel))clickBlock;

/// 字符串选择
/// @param height 高度
/// @param selectIdx 默认选中
/// @param dataSourceArr s字符串数组
/// @param clickBlock 返回字符串
+ (void)showStringPickViewWithHeight:(CGFloat)height selectIdx:(NSInteger)selectIdx dataSourceArr:(NSArray *)dataSourceArr callback:(void(^)(BRResultModel *resultModel))clickBlock;

@end

NS_ASSUME_NONNULL_END
